package com.uniandes.edu.co.interfaz.ciclo;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.SwingUtilities;




/**
 * This code was edited or generated using CloudGarden's Jigloo
 * SWT/Swing GUI Builder, which is free for non-commercial
 * use. If Jigloo is being used commercially (ie, by a corporation,
 * company or business for any purpose whatever) then you
 * should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details.
 * Use of Jigloo implies acceptance of these licensing terms.
 * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
 * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
 * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
@SuppressWarnings("serial")
public class InterfazConsultarTareaCiclo extends javax.swing.JFrame {
	private JButton jButton1;
	private JLabel jLabel5;
	private JTextField jTextField6;
	private JTextField jTextField5;
	private JTextField jTextField4;
	private JTextField jTextField3;
	private JLabel jLabel8;
	private JLabel jLabel7;
	private JLabel jLabel6;
	private JTextField jTextField2;
	private JTextField jTextField1;
	private JLabel jLabel4;
	private JTextArea jTextArea1;
	private JScrollPane jScrollPane1;
	private JLabel jLabel3;
	private JLabel jLabel2;
	private JLabel jLabel1;

	/**
	 * Auto-generated main method to display this JFrame
	 */
	public static void main(String[] args,final boolean volverPrincipal) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				InterfazConsultarTareaCiclo inst = new InterfazConsultarTareaCiclo(volverPrincipal);
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}

	public InterfazConsultarTareaCiclo( boolean volverPrincipal) {
		super();
		initGUI( volverPrincipal);
	}

	private void initGUI(final boolean volverPrincipal) {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jButton1 = new JButton();
				getContentPane().add(jButton1);
				jButton1.setText("Regresar");
				jButton1.setBounds(336, 370, 130, 23);
				jButton1.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						dispose();
						if (volverPrincipal){
							//Principal.main(null);
						}
						else{
							//InterfazMostrarCiclo.main(null);
						}
					}
				});
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1);
				jLabel1.setText("Consultar Tarea");
				jLabel1.setBounds(36, 18, 430, 29);
				jLabel1.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
				jLabel1.setFont(new java.awt.Font("Segoe UI",1,14));
				jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
				jLabel1.setHorizontalTextPosition(SwingConstants.CENTER);
			}
			{
				jLabel2 = new JLabel();
				getContentPane().add(jLabel2);
				jLabel2.setText("id Tarea");
				jLabel2.setBounds(12, 68, 143, 19);
				jLabel2.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			}
			{
				jLabel3 = new JLabel();
				getContentPane().add(jLabel3);
				jLabel3.setText("Descripcion");
				jLabel3.setBounds(12, 103, 143, 19);
				jLabel3.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			}
			{
				jScrollPane1 = new JScrollPane();
				getContentPane().add(jScrollPane1);
				jScrollPane1.setBounds(173, 101, 300, 80);
				{
					jTextArea1 = new JTextArea();
					jScrollPane1.setViewportView(jTextArea1);
					jTextArea1.setText("Tarea de prueba");
					jTextArea1.setBounds(57, 64, 244, 77);
					jTextArea1.setEditable(false);
				}
			}
			{
				jLabel4 = new JLabel();
				getContentPane().add(jLabel4);
				jLabel4.setText("Tiempo Real");
				jLabel4.setBounds(12, 205, 143, 19);
				jLabel4.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			}
			{
				jLabel5 = new JLabel();
				getContentPane().add(jLabel5);
				jLabel5.setText("responsable");
				jLabel5.setBounds(12, 330, 143, 19);
				jLabel5.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			}
			{
				jTextField1 = new JTextField();
				getContentPane().add(jTextField1);
				jTextField1.setBounds(173, 66, 297, 23);
				jTextField1.setEditable(false);
				jTextField1.setText("T1");
			}
			{
				jTextField2 = new JTextField();
				getContentPane().add(jTextField2);
				jTextField2.setBounds(173, 203, 300, 23);
				jTextField2.setText("30 Min");
				jTextField2.setEditable(false);
			}
			{
				jLabel6 = new JLabel();
				getContentPane().add(jLabel6);
				jLabel6.setText("Tiempo Estimado");
				jLabel6.setBounds(12, 236, 143, 19);
				jLabel6.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			}
			{
				jLabel7 = new JLabel();
				getContentPane().add(jLabel7);
				jLabel7.setText("Valor ganado real");
				jLabel7.setBounds(12, 264, 143, 19);
				jLabel7.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			}
			{
				jLabel8 = new JLabel();
				getContentPane().add(jLabel8);
				jLabel8.setText("Valor ganado estimado");
				jLabel8.setBounds(12, 295, 143, 23);
				jLabel8.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			}
			{
				jTextField3 = new JTextField();
				getContentPane().add(jTextField3);
				jTextField3.setBounds(173, 234, 297, 23);
				jTextField3.setText("50 Min");
				jTextField3.setEditable(false);
			}
			{
				jTextField4 = new JTextField();
				getContentPane().add(jTextField4);
				jTextField4.setBounds(173, 262, 297, 23);
				jTextField4.setText("30%");
				jTextField4.setEditable(false);
			}
			{
				jTextField5 = new JTextField();
				getContentPane().add(jTextField5);
				jTextField5.setBounds(173, 295, 297, 23);
				jTextField5.setText("50%");
				jTextField5.setEditable(false);
			}
			{
				jTextField6 = new JTextField();
				getContentPane().add(jTextField6);
				jTextField6.setText("Juan David");
				jTextField6.setEditable(false);
				jTextField6.setBounds(173, 330, 297, 23);
			}
			pack();
			this.setSize(530, 452);
			centrarVentana();
		} catch (Exception e) {
			//add your error handling code here
			e.printStackTrace();
		}
	}
	
	private void centrarVentana(){
        Dimension dPantalla = Toolkit.getDefaultToolkit( ).getScreenSize( );
        Dimension dVentana = getSize( );

        int xEsquina = ( dPantalla.width / 2 ) - ( dVentana.width / 2 );
        int yEsquina = ( dPantalla.height / 2 ) - ( dVentana.height / 2 );

        setLocation( xEsquina, yEsquina );
    }

}
